package com.gdufe.firesafe.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gdufe.firesafe.utils.PageUtils;
import com.gdufe.firesafe.utils.Query;
import com.gdufe.firesafe.dao.FloorDao;
import com.gdufe.firesafe.model.entity.FloorEntity;
import com.gdufe.firesafe.service.FloorService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("floorService")
public class FloorServiceImpl extends ServiceImpl<FloorDao, FloorEntity> implements FloorService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<FloorEntity> page = this.page(
                new Query<FloorEntity>().getPage(params),
                new QueryWrapper<FloorEntity>()
        );

        return new PageUtils(page);
    }

}
